/**
 *  @author TalkTao
 * @description  按需引入Vant
 */
import {
  Empty ,
  Loading,
  IndexBar,
  IndexAnchor,
  PullRefresh,
  Skeleton,
  Grid,
  GridItem,
  Tab,
  Tabs,
  Picker,
  Popup,
  Col,
  Row,
  Swipe,
  SwipeItem,
  Button,
  Tabbar,
  TabbarItem,
  Sticky,
  NavBar,
  Icon,
  Search,
  DropdownMenu,
  DropdownItem,
  Image,
  Lazyload,
  Toast,
  Field,
  Cell,
  CellGroup,
  Form,
  List,
  Tag,
  Uploader,
  Popover,
  Dialog
} from 'vant'
const pluginsVant = [
  Empty ,
  Loading,
  IndexBar,
  IndexAnchor,
  PullRefresh,
  Skeleton,
  Grid,
  GridItem,
  Tab,
  Tabs,
  Picker,
  Popup,
  Col,
  Row,
  Swipe,
  SwipeItem,
  Button,
  Tabbar,
  TabbarItem,
  Sticky,
  NavBar,
  Icon,
  Search,
  DropdownMenu,
  DropdownItem,
  Image,
  Lazyload,
  Toast,
  Field,
  Cell,
  CellGroup,
  Form,
  List,
  Tag,
  Uploader,
  Popover,
  Dialog
]
export const vantPlugins = {
  install: function (vm) {
    pluginsVant.forEach((item: any) => {
      vm.component(item.name, item)
    })
  },
}
